package com.gxa.ssm340.entity.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Date;

/**
 * 优惠券实体类
 */
@Data
@Component
public class Coupon1 implements Serializable {
    //优惠券id
    private Integer id;
    //优惠券名字
    private String name;
    //优惠券描述
    private String desc;
    //优惠券照片路径
    private String img;
    //优惠券使用规则
    private String role;
    //领用有效期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date collectExp;
    //使用有效期
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "Asia/Shanghai")
    private Date usedExp;
    //是否核销
    private Integer inUse;
    //是否上架
    private Integer isUse;
}
